package com.qf.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qf.pojo.Expenditure;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
@Mapper
public interface ExpenditureMapper extends BaseMapper<Expenditure> {
    @Select("select * from expenditure ex left join user u on ex.user_id=u.user_id  ${ew.customSqlSegment}")
    Page<Expenditure> findAll(Page<Expenditure> page,@Param(Constants.WRAPPER) Wrapper<Expenditure> wrapper);
}
